package org.apache.dubbo.demo.example.eg14;

import java.io.IOException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

  public static void main(String[] args) throws IOException {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:example/eg14/applicationContext.xml");
    DemoService demoService = (DemoService) context.getBean("demoServiceConsumer");
    String result = demoService.sayHello();
    System.out.println("************************ result: " + result  + " ************************");
  }

}
